<template>
  <div class="newBuild-wrapper">
    <div class="top-new-save-wrapper">
        <p>保存</p>
    </div>
    <div class="remind-content">
        <h3>提醒内容</h3>
        <span class="need">(必填)</span>
        <div class="content-wrapper">
            <div class="content">
                <span class="iconfont">&#xe630;</span>
                <div class="input-wrapper">
                    <input type="text" placeholder="送礼人姓名" placeholder-style="color: #ccc; font-size: 12px; margin-top: 4px;">
                </div>
            </div>
            <div class="content">
                <span class="iconfont">&#xea92;</span>
                <div class="input-wrapper">
                    <input type="text" placeholder="送礼原因" placeholder-style="color: #ccc; font-size: 12px; margin-top: 4px;">
                </div>
            </div>
            <div class="content">
                <span class="iconfont">&#xe612;</span>
                <div class="input-wrapper">
                    <input type="text" placeholder="送礼时间" placeholder-style="color: #ccc; font-size: 12px; margin-top: 4px;">
                </div>
            </div>
        </div>
    </div>
    <div class="remark-wrapper">
        <h3>备注内容</h3>
        <div class="remark">
            <span class="iconfont">&#xe620;</span>
            <div class="input-wrapper">
                <input type="text" placeholder="请输入备注" placeholder-style="color: #ccc; font-size: 12px; margin-top: 4px;">
            </div>
        </div>
    </div>
    <div class="remark-setting-wrapper">
        <h3>提醒设置</h3>
        <div class="bottom-setting">
                <div class="default-content">
                <span>默认</span>
                <span>会在提前10天和当天提醒</span>
            </div>
            <div class="check-day">
                <span>可选</span>
                <span>提前7天</span>
                <span>提前5天</span>
                <span>提前1天</span>
            </div>
            <div class="constraint">
                <span>强制提醒模式</span>
                <van-switch @change="onChange" :checked="checked" active-color="#07c160" inactive-color="#ffffff" size="20px" class="switch" />
                <p>开启强制提醒，将在APP推送，短信通知以及公众号等相关渠道进行推送提醒</p>
            </div>
        </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      checked: false
    }
  },
  methods: {
    onChange () {
      this.checked = !this.checked
    }
  }
}
</script>

<style lang="scss" scoped>
.newBuild-wrapper {
    background-color: #fafafa;
    height: 590px;
    .top-new-save-wrapper {
        height: 20px;
        // background-color: red;
        p {
            font-size: 16px;
            color: #ccc;
            margin-left: 325px;
        }
    }
    .remind-content {
        height: 200px;
        width: 99%;
        margin-top: 10px;
        h3 {
            display: inline-block;
            font-weight: 700;
            margin-left: 15px;
        }
        .need {
            font-size: 14px;
            color: #888;
        }
        .content-wrapper {
            width: 100%;
            height: 140px;
            background-color: #fff;
            border-radius: 6px;
            margin-left: 3px;
            .content {
                // background-color: green;
                margin-top: 10px;
                .iconfont {
                    margin-left: 10px;
                    margin-right: 10px;
                    color: #ccc;
                }
                .input-wrapper {
                    width: 80%;
                    // background-color: blue;
                    display: inline-block;
                    margin: 5px;
                }
            }
        }
    }
    .remark-wrapper {
        margin-bottom: 40px;
        h3 {
            display: inline-block;
            font-weight: 700;
            margin-left: 15px;
        }
        .remark {
            margin-top: 20px;
            width: 99%;
            height: 55px;
            background-color: #fff;
            border-radius: 6px;
            margin-left: 3px;
            .iconfont {
                margin-left: 10px;
                margin-right: 10px;
                color: #ccc;
            }
            .input-wrapper {
                width: 80%;
                // background-color: blue;
                display: inline-block;
                margin: 5px;
            }
        }
    }
    .remark-setting-wrapper {
        h3 {
            display: inline-block;
            font-weight: 700;
            margin-left: 15px;
        }
        .bottom-setting {
            width: 99%;
            height: 150px;
            background-color: #fff;
            border-radius: 6px;
            margin-left: 3px;
            display: flex;
            flex-direction: column;
            margin-top: 20px;
            .default-content {
                flex: 1;
                margin-left: 10px;
                margin-top: 8px;
                span:nth-child(1) {
                    padding: 4px;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    margin-right: 16px;
                    font-size: 12px;
                }
                span:nth-child(2) {
                    color: #989898;
                    font-size: 16px;
                }
            }
            .check-day {
                flex: 1;
                margin-left: 10px;
                margin-top: 8px;
                span:nth-child(1) {
                    padding: 4px;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    margin-right: 16px;
                    font-size: 12px;
                }
                span:nth-child(2) {
                    color: #999;
                    font-size: 16px;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    padding: 4px;
                    padding-left: 10px;
                    padding-right: 10px;
                    margin-right: 10px;
                }
                span:nth-child(3) {
                    color: #999;
                    font-size: 16px;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    padding: 4px;
                    padding-left: 10px;
                    padding-right: 10px;
                    margin-right: 10px;
                }
                span:nth-child(4) {
                    color: #999;
                    font-size: 16px;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    padding: 4px;
                    padding-left: 10px;
                    padding-right: 10px;
                    margin-right: 10px;
                }
            }
            .constraint {
                flex: 1;
                margin-left: 10px;
                margin-top: 8px;
                position: relative;
                span {
                    color: #999;
                }
                .switch {
                    position: absolute;
                    right: 10px;
                    top: 1px;
                }
                p {
                    font-size: 14px;
                    color: #ccc;
                    margin: 5px;
                }
            }
        }
    }
}
</style>
